//
//  WKAddressAddVC.m
//  LLWallet
//
//  Created by wangfei on 2025/9/15.
//

#import "WKAddressAddVC.h"
#import "WKCoinVC.h"

@interface WKAddressAddVC ()<WKAddressAddVMDelegate>

@end

@implementation WKAddressAddVC
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.viewModel = [WKAddressAddVM shared];
        self.viewModel.delegate = self;
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (NSString *)langTitle {
    return LLang(@"添加地址");
}

- (void)ff_coinSelect:(WKBiTypeInfoResp *)item{
    WKCoinVC *vc = [WKCoinVC new];
    vc.confirmBlock = ^(WKBiTypeInfoResp * _Nonnull item) {
        self.viewModel.selectBi = item;
        [self.viewModel reloadData];
    };
    [self.navigationController pushViewController:vc animated:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
